﻿using System;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace BrainTechLLC
{
    #if NO_SILVERLIGHT
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
#endif
    public interface ITimeFlow
    {
        DateTime StartTime { get; set; }
        DateTime CurrentTime { get; set; }
    }

    #if NO_SILVERLIGHT
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
#endif
    public interface ITimeInfoData : IComparable<ITimeInfoData>
    {
        DateTime Time { get; set; }
        TimeSpan ElapsedTime { get; set; }
        TimeSpan TimeBetween(ITimeInfoData firstEventTime, ITimeInfoData secondEventTime);
    }
}
